import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'


import routes from '../router/routes.ts'
const router = createRouter({
  history: createWebHistory(),
  routes,
  mode: "abstract",
  //滚动条行为
  scrollBehavior() {
    return {
      left: 0,
      top: 0
    }
  }
})

export default router